;(function(){
  'use strict';
  angular.module('controllers.oldOMDisplay.upayQM',[])
  .controller('upayQMCtrl', upayQMCtrl);

  function upayQMCtrl($scope,CoreService,Bank,UpayQMServer){
    var tabs = ['/tradeCompletion','/tradeStatistics','/fullAbnormal','/billResult','/tradeStatRepForm'];
    $scope.selectedIndex = CoreService.navgit(tabs);
    $scope.$on('$stateChangeSuccess', function(evt, state) {
      $scope.selectedIndex = tabls.indexOf(state.url);
    });
    UpayQMServer.setBank(Bank);
  }
  
  upayQMCtrl.$inject = ['$scope','CoreService','Bank','UpayQMServer'];
})();